package cn.iocoder.yudao.module.product.evaluation.vo;

import cn.iocoder.yudao.framework.business.evaluation.enums.ScoreTypeEnum;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.framework.validation.InEnumValue;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

@Schema(description = "用户 APP - 产品评价分页 Request VO")
@Data
@Accessors(chain = true)
public class AppProductEvaluationPageReqVO extends PageParam {

    @Schema(description = "店铺编号", example = "1")
    private Long shopId;

    @Schema(description = "产品 SPU 编号", example = "29502")
    private Long spuId;

    @Schema(description = "页签类型 (0-全部、1-好评、2-中评、3-差评、4-有图)", example = "0", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "页签类型不能为空")
    @InEnumValue(ScoreTypeEnum.class)
    private Integer type;

}
